﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/3/28 星期四 23:06:55
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Framework.EntityType;
using Sector7.Framework.DB;

namespace Sector7.Framework.DAO
{
    /// <summary>
    /// 数据分组访问接口
    /// </summary>
    public interface IDataGroupDAO : IDAOBase<S7_DataGroup>
    {
        /// <summary>
        /// 根据分组标识符读取数据分组
        /// </summary>
        /// <param name="groupIdentifier">分组标识符</param>
        /// <returns>数据分组</returns>
        S7_DataGroup Read(string groupIdentifier);

        /// <summary>
        /// 根据分组类型读取所有数据分组
        /// </summary>
        /// <param name="groupType">数据分组类型</param>
        /// <returns>数据分组列表</returns>
        List<S7_DataGroup> ReadAll(int groupType);
    }
}
